import { createRouter, createWebHashHistory } from 'vue-router'
import Interview from '../components/Interview.vue'
import Resume from '../components/Resume.vue'
import SelfIntro from '../components/SelfIntro.vue'
import JobMatch from '../components/JobMatch.vue'

const routes = [
  { path: '/', redirect: '/interview' },
  { path: '/interview', component: Interview, name: '模拟面试' },
  { path: '/resume', component: Resume, name: '简历评估' },
  { path: '/selfintro', component: SelfIntro, name: '自我介绍评价' },
  { path: '/jobmatch', component: JobMatch, name: '岗位匹配' }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router